package com.inspur.ourhis_afterend.Service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.inspur.ourhis_afterend.Service.CostService;
import com.inspur.ourhis_afterend.mapper.CostSetTleDetailsMapper;
import com.inspur.ourhis_afterend.model.CostSetTleDetails;
import com.inspur.ourhis_afterend.vo.CostSetDetailVo;
import com.inspur.ourhis_afterend.vo.CostVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service("costService")
public class CostServiceImpl implements CostService {
    @Resource
    CostSetTleDetailsMapper costSetTleDetailsMapper;
    @Override
    public IPage<CostVo> selectBySelective(IPage<CostVo> page,Integer memberid,String memberName,Integer roid) {
        return costSetTleDetailsMapper.selectBySelective(page,memberid,memberName,roid);
    }

    @Override
    public IPage<CostSetDetailVo> selectCostDetail(IPage<CostSetDetailVo> page, Integer memberid, String memberName, Integer roid) {
        return costSetTleDetailsMapper.selectCostDetail(page, memberid, memberName, roid);
    }

    @Override
    public CostVo selectBySelective2(Integer memberid) {
        return costSetTleDetailsMapper.selectBySelective2(memberid);
    }

    @Override
    public int insertSelective(CostSetTleDetails record) {
        return costSetTleDetailsMapper.insertSelective(record);
    }

}
